<%= error_messages_for :reservation %>

<% form_for :reservation, :url => {:controller => 'reservations', :action => 'new', :category_id => @category.id } do |form| -%>
<fieldset>
    <legend>Reserve a <%= @category.title.singularize %></legend>
  
  <%= render :partial => 'form'%>
    <p><%= submit_tag 'Find' %></p>
</fieldset>
<% end -%>